/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.prototype-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #ff6b6b;
    margin-bottom: 30px;
    font-size: 28px;
}

h2 {
    color: #333;
    margin: 30px 0 20px;
    font-size: 24px;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
}

/* 导航样式 */
.prototype-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-item {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* 手机屏幕样式 */
.phone-screen {
    width: 375px;
    height: 812px;
    background: #fff;
    border: 10px solid #333;
    border-radius: 40px;
    margin: 0 auto 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.status-icons {
    display: flex;
    gap: 5px;
}

.screen-content {
    height: calc(100% - 120px);
    overflow-y: auto;
    padding: 0;
    background: #f8f9fa;
}

.tab-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.tab.active {
    color: #ff6b6b;
    font-weight: bold;
}

/* 首页样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
}

.banner {
    padding: 20px;
    background: #fff;
}

.banner img {
    width: 100%;
    height: 150px;
    border-radius: 15px;
    object-fit: cover;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.action-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-2px);
}

.action-card .icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.today-special {
    padding: 20px;
    background: #fff;
    margin: 0 20px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.today-special h4 {
    margin-bottom: 15px;
    color: #333;
}

.special-dish {
    display: flex;
    align-items: center;
    gap: 15px;
}

.special-dish img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
}

.dish-info h5 {
    margin-bottom: 5px;
    color: #333;
}

.add-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
}

/* 菜单页面样式 */
.search-bar {
    display: flex;
    padding: 15px 20px;
    background: #fff;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.filter-btn {
    padding: 10px 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    padding: 10px 20px;
    background: #fff;
    gap: 10px;
}

.category {
    padding: 8px 20px;
    background: #f0f0f0;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category.active {
    background: #ff6b6b;
    color: white;
}

.dish-list {
    padding: 20px;
}

.dish-card {
    display: flex;
    background: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    gap: 15px;
}

.dish-card img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
}

.dish-details {
    flex: 1;
}

.dish-details h4 {
    margin-bottom: 5px;
    color: #333;
}

.desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.points {
    color: #ff6b6b;
    font-weight: bold;
}

.add-cart {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    align-self: flex-end;
}

/* 购物车样式 */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.clear-btn {
    background: none;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
}

.cart-items {
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 15px;
    gap: 15px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.item-info {
    flex: 1;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.cart-summary {
    background: #fff;
    padding: 20px;
    margin: 20px;
    border-radius: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total-points {
    color: #ff6b6b;
    font-weight: bold;
}

.checkout-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 15px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}

/* 订单页面样式 */
.order-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.order-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-weight: 500;
}

.order-list {
    padding: 20px;
}

.order-card {
    background: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-no {
    font-size: 14px;
    color: #666;
}

.status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.completed {
    background: #d4edda;
    color: #155724;
}

.mini-item {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.total {
    font-weight: bold;
    color: #ff6b6b;
}

.time {
    font-size: 12px;
    color: #999;
}

/* 积分页面样式 */
.points-header {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.points-display {
    margin-bottom: 20px;
}

.points-amount {
    font-size: 48px;
    font-weight: bold;
}

.points-label {
    font-size: 14px;
    opacity: 0.9;
}

.points-stats {
    display: flex;
    justify-content: space-around;
}

.stat {
    text-align: center;
}

.stat .number {
    font-size: 24px;
    font-weight: bold;
}

.stat .label {
    font-size: 12px;
    opacity: 0.9;
}

.points-actions {
    display: flex;
    gap: 10px;
    padding: 20px;
}

.action-btn {
    flex: 1;
    padding: 15px;
    background: white;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    border-radius: 25px;
    cursor: pointer;
}

.earn-points {
    padding: 20px;
}

.earn-points h4 {
    margin-bottom: 15px;
    color: #333;
}

.task-list {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.task-item:last-child {
    border-bottom: none;
}

.task-icon {
    font-size: 30px;
    width: 50px;
    text-align: center;
}

.task-info {
    flex: 1;
}

.task-info h5 {
    margin-bottom: 5px;
    color: #333;
}

.task-info p {
    color: #ff6b6b;
    font-weight: bold;
}

.do-task {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* 事件页面样式 */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.add-event {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.events-list {
    padding: 20px;
}

.event-card {
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    gap: 15px;
}

.event-icon {
    font-size: 40px;
    width: 60px;
    text-align: center;
}

.event-info {
    flex: 1;
}

.event-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.event-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.points {
    color: #ff6b6b;
    font-weight: bold;
}

.points.completed {
    color: #28a745;
}

.trigger-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.event-card.completed {
    opacity: 0.7;
}

/* 个人中心样式 */
.profile-header {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 10px;
}

.profile-info h3 {
    margin-bottom: 5px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    background: #fff;
    padding: 20px;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.profile-menu {
    margin: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-item .icon {
    width: 30px;
    font-size: 20px;
}

.menu-item span:nth-child(2) {
    flex: 1;
    margin-left: 15px;
}

.arrow {
    color: #ccc;
}

/* 通知样式 */
.notification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.notification-popup {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 300px;
}

.notification-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.notification-popup h4 {
    margin-bottom: 10px;
    color: #333;
}

.notification-popup p {
    color: #666;
    margin-bottom: 20px;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    flex: 1;
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.btn-primary {
    flex: 1;
    padding: 10px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.notification-list {
    padding: 20px;
}

.notification-item {
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 15px;
    gap: 15px;
}

.noti-icon {
    font-size: 30px;
    width: 50px;
    text-align: center;
}

.noti-content {
    flex: 1;
}

.noti-content h5 {
    margin-bottom: 5px;
    color: #333;
}

.noti-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.time {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .phone-screen {
        width: 100%;
        max-width: 375px;
        margin: 0 auto 20px;
    }
    
    .prototype-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        width: 200px;
        text-align: center;
    }
}

/* 滚动条样式 */
.screen-content::-webkit-scrollbar {
    width: 6px;
}

.screen-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.screen-content::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 3px;
}

.screen-content::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dish-card,
.order-card,
.event-card,
.notification-item {
    animation: fadeIn 0.5s ease-out;
}

/* 特殊状态样式 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state .icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}